home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ für Kids
/
C++ for kids.iso
/
SETUP
/
US
/
CBUILDER
/
DATA.Z
/
WINDOWS.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-13
|
51KB
|
2,443 lines
//----------------------------------------------------------------------------
// Windows.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: Windows.pas
//----------------------------------------------------------------------------
#ifndef WindowsHPP
#define WindowsHPP
#if !defined(WIN32_LEAN_AND_MEAN) && !defined(_WINDOWS_)
#ifndef VCL_FULL
#define WIN32_LEAN_AND_MEAN
#define _VCL_LEAN_AND_MEAN
#endif
#include <windows.h>
// Permit windows.h to be #include'd after windows.hpp, if only the
// lean and mean portion was included
#ifdef WIN32_LEAN_AND_MEAN
#undef WIN32_LEAN_AND_MEAN
#undef _INC_WINDOWS
#undef _WINDOWS_
#endif
#elif !defined(_WINDOWS_)
// If the user manually #define'd WIN32_LEAN_AND_MEAN, then the
// symbol should remain visible.
#ifdef WIN32_LEAN_AND_MEAN
#define _VCL_LEAN_AND_MEAN
#endif
#include <windows.h>
#endif
//----------------------------------------------------------------------------
#include <System.hpp>
#pragma warn -par
#pragma warn -hid
#pragma warn -inl
namespace Windows
{
//-- type declarations -------------------------------------------------------
typedef wchar_t *PWChar;
typedef Byte *PByte;
typedef float *PSingle;
typedef long *PLongint;
typedef int *PInteger;
typedef int THandle;
typedef int *PHandle;
typedef _LARGE_INTEGER *PLargeInteger;
typedef _LARGE_INTEGER TLargeInteger;
typedef _LIST_ENTRY *PListEntry;
typedef _LIST_ENTRY TListEntry;
typedef _FLOATING_SAVE_AREA *PFloatingSaveArea;
typedef _FLOATING_SAVE_AREA TFloatingSaveArea;
typedef _CONTEXT *PContext;
typedef _CONTEXT TContext;
typedef _LDT_ENTRY *PLDTEntry;
typedef _LDT_ENTRY TLDTEntry;
typedef _EXCEPTION_RECORD *PExceptionRecord;
typedef _EXCEPTION_RECORD TExceptionRecord;
typedef _EXCEPTION_POINTERS TExceptionPointers;
typedef _MEMORY_BASIC_INFORMATION *PMemoryBasicInformation;
typedef _MEMORY_BASIC_INFORMATION TMemoryBasicInformation;
typedef _GENERIC_MAPPING *PGenericMapping;
typedef _GENERIC_MAPPING TGenericMapping;
typedef _LUID_AND_ATTRIBUTES *PLUIDAndAttributes;
typedef _LUID_AND_ATTRIBUTES TLUIDAndAttributes;
typedef _SID_IDENTIFIER_AUTHORITY *PSIDIdentifierAuthority;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _SID_IDENTIFIER_AUTHORITY TSIDIdentifierAuthority;
typedef _SID_AND_ATTRIBUTES *PSIDAndAttributes;
typedef _SID_AND_ATTRIBUTES TSIDAndAttributes;
typedef _ACL TACL;
typedef _SECURITY_DESCRIPTOR *PSecurityDescriptor;
typedef _SECURITY_DESCRIPTOR TSecurityDescriptor;
typedef _PRIVILEGE_SET *PPrivilegeSet;
typedef _PRIVILEGE_SET TPrivilegeSet;
#pragma option -b
enum TSecurityImpersonationLevel { SecurityAnonymous, SecurityIdentification, SecurityImpersonation,
SecurityDelegation };
#pragma option -b.
typedef _SECURITY_QUALITY_OF_SERVICE *PSecurityQualityOfService;
typedef _SECURITY_QUALITY_OF_SERVICE TSecurityQualityOfService;
typedef _TOKEN_GROUPS *PTokenGroups;
typedef _TOKEN_GROUPS TTokenGroups;
typedef _TOKEN_PRIVILEGES *PTokenPrivileges;
typedef _TOKEN_PRIVILEGES TTokenPrivileges;
typedef int __stdcall (*TThreadStartRoutine)(void * lpThreadParameter);
typedef _RTL_CRITICAL_SECTION *PRTLCriticalSection;
typedef _RTL_CRITICAL_SECTION_DEBUG *PRTLCriticalSectionDebug;
typedef _RTL_CRITICAL_SECTION_DEBUG TRTLCriticalSectionDebug;
typedef _RTL_CRITICAL_SECTION TRTLCriticalSection;
typedef Word TAtom;
typedef void *TFarProc;
typedef void *PROC_22;
typedef int HINST;
typedef long TColorRef;
typedef tagPOINT *PPoint;
typedef tagPOINT TPoint;
struct TRect
{
TRect() { }
TRect(RECT& r) {
Left = r.left;
Top = r.top;
Right = r.right;
Bottom = r.bottom;
}
operator RECT() {
RECT r;
r.left = Left;
r.top = Top;
r.right = Right;
r.bottom = Bottom;
return r;
}
union
{
struct
{
POINT TopLeft;
POINT BottomRight;
};
struct
{
int Left;
int Top;
int Right;
int Bottom;
};
};
} ;
typedef TRect *PRect;
typedef tagSIZE *PSize;
typedef tagSIZE TSize;
struct TSmallPoint
{
short x;
short y;
} ;
typedef TSmallPoint *PSmallPoint;
typedef _OVERLAPPED *POverlapped;
typedef _OVERLAPPED TOverlapped;
typedef _SECURITY_ATTRIBUTES *PSecurityAttributes;
typedef _SECURITY_ATTRIBUTES TSecurityAttributes;
typedef _PROCESS_INFORMATION *PProcessInformation;
typedef _PROCESS_INFORMATION TProcessInformation;
typedef _FILETIME *PFileTime;
typedef _FILETIME TFileTime;
typedef _SYSTEMTIME *PSystemTime;
typedef _SYSTEMTIME TSystemTime;
typedef void *TFNThreadStartRoutine;
typedef _COMMPROP *PCommProp;
typedef _COMMPROP TCommProp;
#pragma option -b
enum TComStateFlag { fCtlHold, fDsrHold, fRlsHold, fXoffHold, fXOffSent, fEof, fTxim };
#pragma option -b.
typedef Set<TComStateFlag, fCtlHold, fTxim> TComStateFlags;
typedef _COMSTAT TComStat;
typedef _COMSTAT *PComStat;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _DCB TDCB;
typedef _DCB *PDCB;
typedef _COMMTIMEOUTS *PCommTimeouts;
typedef _COMMTIMEOUTS TCommTimeouts;
typedef _COMMCONFIG *PCommConfig;
typedef _COMMCONFIG TCommConfig;
typedef _SYSTEM_INFO *PSystemInfo;
typedef _SYSTEM_INFO TSystemInfo;
typedef _MEMORYSTATUS *PMemoryStatus;
typedef _MEMORYSTATUS TMemoryStatus;
typedef _EXCEPTION_DEBUG_INFO *PExceptionDebugInfo;
typedef _EXCEPTION_DEBUG_INFO TExceptionDebugInfo;
typedef _CREATE_THREAD_DEBUG_INFO *PCreateThreadDebugInfo;
typedef _CREATE_THREAD_DEBUG_INFO TCreateThreadDebugInfo;
typedef _CREATE_PROCESS_DEBUG_INFO *PCreateProcessDebugInfo;
typedef _CREATE_PROCESS_DEBUG_INFO TCreateProcessDebugInfo;
typedef _EXIT_THREAD_DEBUG_INFO *PExitThreadDebugInfo;
typedef _EXIT_THREAD_DEBUG_INFO TExitThreadDebugInfo;
typedef _EXIT_PROCESS_DEBUG_INFO *PExitProcessDebugInfo;
typedef _EXIT_PROCESS_DEBUG_INFO TExitProcessDebugInfo;
typedef _LOAD_DLL_DEBUG_INFO *PLoadDLLDebugInfo;
typedef _LOAD_DLL_DEBUG_INFO TLoadDLLDebugInfo;
typedef _UNLOAD_DLL_DEBUG_INFO *PUnloadDLLDebugInfo;
typedef _UNLOAD_DLL_DEBUG_INFO TUnloadDLLDebugInfo;
typedef _OUTPUT_DEBUG_STRING_INFO *POutputDebugStringInfo;
typedef _OUTPUT_DEBUG_STRING_INFO TOutputDebugStringInfo;
typedef _RIP_INFO *PRIPInfo;
typedef _RIP_INFO TRIPInfo;
typedef _DEBUG_EVENT *PDebugEvent;
typedef _DEBUG_EVENT TDebugEvent;
typedef _OFSTRUCT *POFStruct;
typedef _OFSTRUCT TOFStruct;
typedef char *MakeIntAtomA;
typedef wchar_t *MakeIntAtomW;
typedef char *MakeIntAtom;
typedef _PROCESS_HEAP_ENTRY *PProcessHeapEntry;
typedef _PROCESS_HEAP_ENTRY TProcessHeapEntry;
typedef void *TFNTopLevelExceptionFilter;
typedef int TWOHandleArray[64];
typedef TWOHandleArray *PWOHandleArray;
typedef _BY_HANDLE_FILE_INFORMATION *PByHandleFileInformation;
typedef _BY_HANDLE_FILE_INFORMATION TByHandleFileInformation;
typedef _TIME_ZONE_INFORMATION *PTimeZoneInformation;
typedef _TIME_ZONE_INFORMATION TTimeZoneInformation;
typedef _WIN32_STREAM_ID *PWIN32StreamID;
typedef _WIN32_STREAM_ID TWIN32StreamID;
typedef _STARTUPINFOA *PStartupInfo;
typedef _STARTUPINFOA TStartupInfo;
typedef _WIN32_FIND_DATAA *PWin32FindDataA;
typedef _WIN32_FIND_DATAW *PWin32FindDataW;
typedef _WIN32_FIND_DATAA *PWin32FindData;
typedef _WIN32_FIND_DATAA TWin32FindDataA;
typedef _WIN32_FIND_DATAW TWin32FindDataW;
typedef _WIN32_FIND_DATAA TWin32FindData;
typedef _OSVERSIONINFOA *POSVersionInfoA;
typedef _OSVERSIONINFOW *POSVersionInfoW;
typedef _OSVERSIONINFOA *POSVersionInfo;
typedef _OSVERSIONINFOA TOSVersionInfoA;
typedef _OSVERSIONINFOW TOSVersionInfoW;
typedef _OSVERSIONINFOA TOSVersionInfo;
typedef _SYSTEM_POWER_STATUS *PSystemPowerStatus;
typedef _SYSTEM_POWER_STATUS TSystemPowerStatus;
typedef tagXFORM *PXForm;
#pragma pack(push, 1)
#pragma pack(pop)
typedef tagXFORM TXForm;
#pragma pack(push, 1)
#pragma pack(pop)
typedef tagBITMAP *PBitmap;
typedef tagBITMAP T